package com.qidian.mespro.mapper;

import com.qidianit.mes.pojo.Workflow;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface WorkflowMapper {
    //多条件查询工艺
    List<Workflow> workflowList(Workflow workflow);

    //新增工艺流程
    int addWorkflow(Workflow workflow);

    //根据工艺编号查询单个工艺信息
    Workflow selectWorkflowByCode(String code);

    //编辑工艺流程
    int updateWorkflowById(Workflow workflow);

    //根据id删除单个工艺
    int deleteWorkflowById(Long id);

    //批量删除多个工艺
    int batchDelete(@Param("ids") Long [] ids);

    //工具物料编号查询物料的工艺流程
    List<Workflow> selectListByMatiralCode(String materialCode);
}
